﻿<u:UObject x:Class="UTable.Objects.UAlbum"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:u="clr-namespace:UTable.Objects.Controls;assembly=UTable.Core"
    xmlns:uc="clr-namespace:UTable.Objects.Controls"
    Width="800" Height="590" MenuPosition="5, 5">
    <u:UGrid>
        <u:UGrid.RowDefinitions>
            <RowDefinition Height="66*" />
            <RowDefinition Height="452*" />
            <RowDefinition Height="70*" />
        </u:UGrid.RowDefinitions>
        <u:UGrid.ColumnDefinitions>
            <ColumnDefinition Width="69*" />
            <ColumnDefinition Width="661*" />
            <ColumnDefinition Width="68*" />
        </u:UGrid.ColumnDefinitions>
        <u:UGrid.Background>
            <ImageBrush ImageSource="Images/photoframe.jpg" Stretch="Fill"/>
        </u:UGrid.Background>
        <uc:UScanView Grid.Row="1" Grid.Column="1" x:Name="ScanViewer" ItemsSource="{Binding PhotoPathList}">
            <uc:UScanView.ItemTemplate>
                <DataTemplate>
                    <Image Source="{Binding}"/>
                </DataTemplate>
            </uc:UScanView.ItemTemplate>
        </uc:UScanView>
        <uc:UGridView Grid.Row="1" Grid.Column="1" x:Name="GridViewer" 
                      ItemsSource="{Binding PhotoPathList}" Visibility="Hidden" LayoutDirection="LeftRightDown" 
                      LayoutMargin="5, 5, 5, 5" DropItemOut="False" ItemWidth="145" ItemHeight="200">
            <uc:UGridView.ItemTemplate>
                <DataTemplate>
                    <Image Source="{Binding}"/>
                </DataTemplate>
            </uc:UGridView.ItemTemplate>
        </uc:UGridView>

    </u:UGrid>
</u:UObject>
